import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

//引入ElementUI组件

//import element from "./common/ElementUI";
//Vue.use(element);
//引入axios
import axios from "axios";
Vue.prototype.$axios = axios; //全局注册，使用方法为:this.$axios
//代理封装,控制开发和生产环境
// eslint-disable-next-line no-unused-vars
import apiConfig from "@common/api.config.js";
axios.defaults.baseURL = apiConfig.baseUrl;

import { basis, baidumap, wea } from "@common/constants.js";
Vue.prototype.$basis = basis;
Vue.prototype.$baidumap = baidumap;
Vue.prototype.$wea = wea;

//axios接口封装
import https from "./common/https"; //axios接口封装
Vue.prototype.$https = https; //全局注册，使用方法为:this.$https
//引入城市切换
import RegionPicker from "vue-region-picker";
import REGION_DATA from "china-area-data";
// eslint-disable-next-line no-undef
Vue.use(RegionPicker, {
  region: REGION_DATA
});

import Distpicker from "v-distpicker";

Vue.component("v-distpicker", Distpicker);

// import BMap from "BMap";
// Vue.use(BMap);
//引入JQ
//import $ from "jquery";
//Vue.prototype.$ = $; //全局注册，使用方法为:this.$

//引入公用样式
import "./assets/css/public.css";
//import "./assets/css/font.css";

//设置本地图片路径前缀
Vue.prototype.$urls = "http://192.168.1.239/";
// Vue.prototype.$urls = 'http://www.sjxxlm.com/start/pic/';
//http://sjxxlm.com/start/pic/f83d9fee9e3958b580d917099ead57e0.jpg
//http://www.sjxxlm.com/start/pic/2c17721ed66295a473704742fd541c0a.jpg

Vue.config.productionTip = false;
//按需丨元素
Vue.prototype.$ELEMENT = {
  size: "small",
  zIndex: 3000
};

new Vue({
  router,
  store,
  axios,
  render: h => h(App)
}).$mount("#app");
